<template>
  <div id="index">
    <el-container>
      <el-header style="z-index: 999;">
        <Headers />
      </el-header>
      <el-container>
        <el-aside width="220px" >
          <!-- <div class="aside-wrapper">
            <el-menu default-active="1"
              class="el-menu-vertical-demo">
              <router-link to="/index/hotel_information">
                <el-menu-item index="1"
                  v-if="hotel">
                  <i class="fa fa-hospital-o"></i>
                  <span>酒店信息</span>
                </el-menu-item>
              </router-link>
              <router-link to="/index/order_form">
                <el-menu-item index="2"
                  v-if="hotel">
                  <i class="fa fa-file"></i>
                  <span>订单中心</span>
                </el-menu-item>
              </router-link>
               <router-link to="/index/finance-center">
                <el-menu-item index="4"
                  v-if="hotel">
                  <i class="el-icon-edit-outline"></i>
                  <span>结算中心</span>
                </el-menu-item>
              </router-link>
              <router-link to="/index/check-in">
                <el-menu-item index="4"
                  v-if="hotel">
                  <i class="fa fa-table"></i>
                  <span>入住信息</span>
                </el-menu-item>
              </router-link>
              <router-link to="/index/sale_center">
                <el-menu-item index="4"
                  v-if="hotel">
                  <i class="iconfont icon-sale"></i>
                  <span>分销中心</span>
                </el-menu-item>
              </router-link>
              <router-link to="/index/bill-checking">
                <el-menu-item index="10"
                  class="order-count">
                  <i class="icon iconfont icon-bill"></i>
                  <span slot="title">账单查询</span>
                </el-menu-item>
              </router-link>
            </el-menu>
          </div> -->
          <Aside/>
        </el-aside>
        <el-main style="padding:0px;height:calc(90vh);overflow-y:auto">
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Headers from "@/components/Headers";
// import { messageCount } from '../public/js/message'
import "../public/scss/index.scss";
import Aside from "./Aside.vue";
export default {
  name: "app",
  data() {
    return {
      orderMessage: this.$refs.orderMessage,
      roomMessage: this.$refs.roomMessage,
      orderClose: null,
      roomClose: null,
      count: null
    };
  },
  created() {
    // this.messageCounts()
    if (!sessionStorage.token) {
      this.$router.push("/");
    }
    window.commo.showMenu(this);
  },
  mounted() {
    // this.receivesMessages()
    // window.intervalClose = setInterval(() => {
    //   this.receivesMessages()
    // }, 30000)
  },
  methods: {},
  components: {
    Headers,
    Aside
  }
};
</script>

<style lang="scss">
html * {
  margin: 0;
  padding: 0;
}
body {
  font-size: 12px;
  font-family: "微软雅黑";
  color: #415161;
  background-color: #e9ecf3;
}
a {
  text-decoration: none;
}

ul {
  list-style: none;
}
.order-count {
  position: relative;
  .count {
    position: absolute;
    top: 10px;
    right: 56px;
    background-color: red;
    color: #fff;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
  }
}
.el-notification {
  padding: 0;
  border-radius: initial;
  .el-notification__group {
    margin: 0;
    .el-notification__content {
      margin: 0;
    }
  }
}
.router-link-active {
  li {
    background: #6d2377;
    i,
    span {
      color: #fff !important;
    }
  }
}
.message-window {
  overflow: hidden;
  .window-left,
  .window-right {
    float: left;
  }
  .window-left {
    position: relative;
    span {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: red;
      color: #fff;
      width: 18px;
      height: 18px;
      line-height: 18px;
      border-radius: 50%;
      font-size: 12px;
      text-align: center;
    }
  }
  .window-right {
    width: 240px;
    .content {
      padding: 19px;
      h1 {
        font-size: 14px;
      }
      .title {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        label {
          width: 100%;
          font-size: 12px;
        }
      }
    }
  }
  .room-bg {
    background-color: #ff9913;
  }
  .order-bg {
    background-color: #45a2ff;
  }
  .window-left {
    width: 80px;
    height: 80px;
    line-height: 7.5;
    text-align: center;
    i {
      font-size: 45px;
      color: #fff;
    }
  }
}
.aside-wrapper {
  i {
    width: 24px;
    font-size: 18px;
    text-align: center;
    margin-right: 5px;
    color: #415161;
  }
  span {
    a {
      color: #415161;
    }
  }
}
.el-header {
  background-color: #6d2377;
  color: white;
  text-align: center;
  width: 100%;
  height: 64px !important;
  padding-right: 0;
  // position: fixed;
  // top:0;
  // left:0;
}
.el-aside {
  padding: 20px 20px 0 20px;
  background-color: #e9ecf3;
  text-align: center;
  line-height: 200px;
  overflow: visible;
  /*布局修改*/
  // position: fixed;
  // top: 64px;
}

.aside-wrapper {
  .el-menu-item:focus,
  .el-menu-item:hover {
    background-color: #6d2377;
    i,
    span {
      color: white;
    }
    .el-menu-item {
      height: 50px;
      line-height: 50px;
    }
  }
  /*侧边栏*/
  .will-aside-list {
    position: relative;
    height: 56px;
    line-height: 56px;
    cursor: pointer;
    font-size: 16px;
    color: #415161;
    .will-aside-list-url {
      position: absolute;
      top: 0;
      left: 160px;
      z-index: 99999;
      padding: 20px;
      background-color: #fff;
      width: 200px;
      display: none;
      color: #415161;
      box-shadow: 3px 3px 3px #e1e1e1;
    }
  }
  .will-aside-list:hover,
  .will-aside-list:focus {
    background-color: #6d2377;
    color: #fff;
    font-size: 16px;
    .will-aside-list-url {
      display: block;
    }
  }
}
.aside-wrapper .el-menu {
  border-right: none;
  padding-top: 10px;
}
.el-popper[x-placement^="right"] {
  margin-left: 0px;
}
.el-main {
  background-color: #fff;
  text-align: center;
  padding-left: 0 !important;
  padding-bottom: 0;
  margin-top: 20px;
  margin-right: 20px;
  padding: 0px;
  /*布局修改*/
  // position: relative;
  // left: 200px;
  // overflow: auto;
  // top: 64px;
}

.el-submenu .el-menu-item {
  min-width: auto;
}

.el-submenu__title,
.el-menu-item {
  text-align: left;
  padding-left: 40px;
}

.el-menu-item:first-child {
  padding-left: 40px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-popover {
  min-width: 50px;
  :first-child {
    border-left: none;
  }
}

.el-popover ul {
  float: left;
  width: 80px;
  padding: 5px;
  border-left: 1px solid #cccccc;
  text-align: center;
  span {
    margin-bottom: 5px;
    display: block;
    color: #c1c1c1;
  }
  li {
    height: 30px;
    line-height: 30px;
    width: 100%;
  }
}
.el-breadcrumb {
  background-color: #e9ecf3;
  padding-bottom: 20px;
}
.easytrip-icon-account,
.easytrip-icon-out {
  background-size: cover;
  background-repeat: no-repeat;
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: sub;
  margin-left: 5px;
}

.easytrip-icon-account {
  background-image: url(../public/image/account.png);
}

.easytrip-icon-out {
  background-image: url(../public/image/out.png);
}
/*下拉小三角*/
.el-popper .popper__arrow,
.el-popper .popper__arrow:after {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: none;
  border-width: 0 !important;
}
/*下拉样式*/

.header-popover.el-popover {
  /*width: 140px!important;*/
  padding: 10px 0;
  color: #415161;
  border-radius: 0;
  border: none;
  div:hover {
    background-color: #eff1f8;
  }
  .account,
  .out {
    padding: 0 30px 0 20px;
    margin-bottom: 0px;
    height: 50px;
    line-height: 50px;
    box-sizing: border-box;
    a {
      color: #415161 !important;
    }
  }
  // .account[data-v-426f70a6], .out[data-v-426f70a6]{
  //   padding: 0 30px 0 20px;
  //   margin-bottom: 0px;
  //   height: 50px;
  //   line-height: 50px;
  //   box-sizing: border-box;
  //   a{
  //     color: #415161!important;
  //   }

  // }
  .account[data-v-426f70a6]:hover,
  .out[data-v-426f70a6]:hover {
    a {
      color: #45a2ff !important;
    }
  }
}
/*表格高度*/
el-table__empty-block {
  width: 100% !important;
}
.el-table {
  font-size: 12px;
}
.el-table td {
  padding: 10px 0;
  color: #415161;
}
.el-table th {
  padding: 13px 0;
  background-color: #eef1f9 !important;
  color: #415161;
  font-weight: normal;
  font-size: 12px;
}
/*全部部门和状态下拉*/
.el-dropdown {
  cursor: pointer;
}
.el-dropdown-menu {
  padding: 0;
  top: 10px;
  cursor: pointer;
  .el-dropdown-menu__item {
    padding: 0 10px;
    font-size: 12px;
    line-height: 30px;
    margin-top: 0px;
  }
}
/*导航菜单下标蓝色修改*/

/*在1600时的样式修改*/
@media screen and (max-width: 1600px) {
  .el-aside {
    padding: 10px 10px 0 10px;
    .will-aside-list {
      .will-aside-list-url {
        left: 180px;
      }
    }
  }
}

.el-popper[x-placement^="bottom"] {
  margin-top: 0;
}
</style>


